#include "Socket.hpp"
#include <memory>
#include "TcpServer.hpp"
void usage(std::string std)
{
     std::cout << "\nUsage: " << std << " port\n" << std::endl;
}
int main(int argc,const char* argv[])
{
    if(argc!=2)
    {
        usage(argv[0]);
        exit(1);
    }
    uint16_t port = atoi(argv[1]);
    std::unique_ptr<TcpServer> svr(new TcpServer(port));
    svr->initServer();
    svr->start();
    return 0;

}